package com.ppl.server.messages.exceptions;

/**
 * User: Vincent
 * Date: 11/13/12
 * Time: 3:14 PM
 */
public class UserLoginException extends ServiceException{
   public enum UserLoginExceptionType{
       SERVER_REJECT(1),
       SERVER_NOT_FOUND(2),
       SERVICE_NOT_AVAILABLE(3);

       private int index;

       public int getIndex() {
           return index;
       }

       UserLoginExceptionType(int index) {
           this.index = index;
       }
   }

    private UserLoginExceptionType reason;
    private String description;

    public UserLoginExceptionType getReason() {
        return reason;
    }

    public void setReason(UserLoginExceptionType reason) {
        this.reason = reason;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
